package org.yst.spring.wechat;


import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@EnableConfigurationProperties(WechatConfig.class)
@Configuration
public class SpringConfig {
    @Bean
    public WechatUtils createUtils(WechatConfig config){
         WechatUtils.setConfig(config);
         return new WechatUtils();
    }
}
